package config_order.config;

import org.springframework.context.SmartLifecycle;
import org.springframework.context.support.DefaultLifecycleProcessor;
import org.springframework.stereotype.Component;

/**
 * 描述：
 *
 * {@link DefaultLifecycleProcessor }
 * @author 🧑 ‍wanwei
 * @since 2022-04-22 09:20
 */
@Component
public class MySmartLifecycle implements SmartLifecycle {


    @Override
    public void start() {
        System.out.println("SmartLifecycle-start:"+ "是这些扩展方法里面最后一个处理的");
    }

    @Override
    public void stop() {

    }

    @Override
    public boolean isRunning() {
        return false;
    }
}
